<template>
  <el-table :data="tableData" style="width: 100%">
    <el-table-column width="180">
      <template slot-scope="scope">
        <span>{{ scope.row.date }}</span>
      </template>
    </el-table-column>
    <el-table-column width="180">
      <template slot-scope="scope">
        <span>{{ scope.row.name }}</span>
      </template>
    </el-table-column>
    <el-table-column>
      <template slot-scope="scope">
        <span>¥ {{ scope.row.price }}</span>
        起
        <span class="el-icon-arrow-right"></span>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: "携程",
          name: "高级大床房",
          price: 194
        },
        {
          date: "艺龙",
          name: "高级大床房",
          price: 216
        },
        {
          date: "Hotels.com",
          name: "高级大床房",
          price: 143
        }
      ]
    };
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    }
  }
};
</script>
